home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _2F17909FF05E4837A2264CC58DF63F5E < prev    next >
Encoding:
Text File  |  2004-07-20  |  5.3 KB  |  224 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $SPECPOW
  6. // $REFL_STRENGTH
  7. // $BFUNC
  8. // $CULLING
  9.  
  10.  
  11. shader()
  12. {
  13.     ShaderQuality(3)
  14.     pass()
  15.     {
  16.         //Lighting()
  17.         Pixelshader("CarG_CmCd_ps14.psh")
  18.         Vertexshader("CarG_CmCd_ps14.vsh")
  19.  
  20.         !include("__tex1.mtt")
  21.         !include("__Dirt.mtt")
  22. //        !include("__TerrainColormapVS.mtt")
  23.         !include("__TerrainColormapSmallVS.mtt")
  24.         !include("__CloudsVS.mtt")
  25. //        !include("__DynamicCubeMap.mtt")
  26.         !include("__CubeMap.mtt")
  27.  
  28.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  29.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  30.  
  31.         !include(BFUNC)
  32.     }
  33.     sortweight("depth_sorted")
  34.     Cull(CULLING)
  35. }
  36.  
  37. shader()
  38. {
  39.     ShaderQuality(2)
  40.     pass()
  41.     {
  42.         //Lighting()
  43.         Pixelshader("CarG_Cm_ps11.psh")
  44.         Vertexshader("CarG_Cm_ps11.vsh")
  45.  
  46.         !include("__tex1.mtt")
  47.         !include("__Dirt.mtt")
  48.         !include("__TerrainColormapSmallVS.mtt")
  49. //        !include("__DynamicCubeMap.mtt")
  50.         !include("__CubeMap.mtt")
  51.  
  52.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  53.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // B - refl strength, A - dirt level
  54.  
  55.         !include(BFUNC)
  56.     }
  57.     sortweight("depth_sorted")
  58.     Cull(CULLING)
  59. }
  60.  
  61. shader()
  62. {
  63.     ShaderQuality(1)
  64.     pass()
  65.     {
  66.         //Lighting()
  67.         Pixelshader("CarG_ps11.psh")
  68.         Vertexshader("CarG_ps11.vsh")
  69.  
  70.         !include("__tex1.mtt")
  71.         !include("__Dirt.mtt")
  72.         !include("__TerrainColormapSmallVS.mtt")
  73.  
  74.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  75.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // B - refl strength, A - dirt level
  76.  
  77.         !include(BFUNC)
  78.     }
  79.     sortweight("depth_sorted")
  80.     Cull(CULLING)
  81. }
  82.  
  83.  
  84. //=========================== GF2 ======================================
  85. shader()
  86. {
  87.  
  88.     ShaderQuality(2)
  89.     pass()
  90.     {
  91.         Lighting()
  92.         tmu()
  93.         {
  94.             Texture()
  95.             {
  96.                 Mapchannel(0)
  97.                 Image(TEXTURE1)
  98.                 !include(TEX1OPTIONSFILE)
  99.             }
  100.             ColorOp("mul", "current", "texture", "current")
  101.             AlphaOp("arg1", "texture_a", "current", "current")
  102.         }
  103.         AmbientColor(%daycolor_a, %daycolor_a, %daycolor_a, 1.000)
  104.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  105.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  106.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  107.         SpecularPow(SPECPOW)
  108.         BlendFunc("one", "inv_src_alpha")
  109.                
  110.     }
  111.     pass()
  112.     {
  113.         Lighting()
  114.         tmu()
  115.         {
  116.             Texture()
  117.             {
  118.                 Mapchannel(0)
  119.                 Image(DIRT_GF2)
  120.                 !include(DIRTOPTIONSFILE)
  121.             }
  122.             ColorOp("mul", "tfactor", "current", "current")
  123.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  124.         }
  125.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  126.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  127.         
  128.         AmbientColor(%daycolor_a, %daycolor_a, %daycolor_a, 1.000)
  129.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  130.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  131.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  132.         SpecularPow(0.0)
  133.         BlendFunc("src_alpha", "inv_src_alpha")
  134.     }
  135.  
  136.  
  137.     pass()
  138.     {
  139.         Lighting()
  140.         tmu()
  141.         {
  142.             TexGen("planar")
  143.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  144.             texture()
  145.             {
  146.                 Image(%colortexturesmall)
  147.                 addressfunc("clamp", "clamp", "clamp")
  148.             }
  149.             ColorOp("arg1", "tfactor", "current", "diffuse_a")
  150.             AlphaOp("add", "texture_a", "tfactor_a", "current")
  151.         }
  152.  
  153.         tmu()
  154.         {
  155.             ColorOp("arg1", "current", "texture", "current")
  156.             AlphaOp("add", "current", "diffuse_a", "current")
  157.         }         
  158.  
  159.         tfactor(0.0, 0.0, 0.0, %daycolor_a)
  160.  
  161.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  162.         DiffuseColor(0.0, 0.0, 0.0, 0.3)
  163.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  164.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  165.         SpecularPow(0.0)
  166.         
  167.         BlendFunc("inv_src_alpha", "src_alpha")        
  168.  
  169.         
  170.     }                    
  171.     lightpass()
  172.     !include("spot_spotmap.mtt")    
  173.     
  174.     sortweight("depth_sorted")
  175.     Cull(CULLING)
  176. }    
  177. //=======================================================
  178. /*
  179. shader()
  180. {
  181.     ShaderQuality(0)
  182.     pass()
  183.     {
  184.         Lighting()
  185.         Pixelshader("Common_specular.psh")
  186.         Vertexshader("Common_specular.vsh")
  187.         !include("__tex1.mtt")
  188.         !include(BFUNC)        
  189.     }
  190.     sortweight("depth_sorted")
  191.     Cull(CULLING)
  192. }
  193. */
  194. shader()
  195. {
  196.     ShaderQuality(0)
  197.     pass()
  198.     {
  199.         Lighting()
  200.         tmu()
  201.         {
  202.             Texture()
  203.             {
  204.                 Mapchannel(0)
  205.                 Image(TEXTURE1)
  206.                 !include(TEX1OPTIONSFILE)
  207.             }
  208.             ColorOp("mul", "current", "texture", "current")
  209.             AlphaOp("arg1", "texture_a", "current", "current")
  210.         }
  211.  
  212.  
  213.         !include("__LightningColorsSpecGF2.mtt")  
  214.         !include(BFUNC)
  215.     }
  216. //    lightpass()
  217. //    !include("spot_spotmap.mtt")
  218.         
  219.     sortweight("depth_sorted")
  220.     Cull(CULLING)
  221. }
  222.  
  223.  
  224.